using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FXManager : MonoBehaviour
{
    public static FXManager Instance;
    public List<GameObject> FXPrefab;

    public Canvas UICanvas;

    private void Awake()
    {
        Instance = this;
    }

    public void ShowFX(int id, Vector3 pos, Quaternion rot)
    {
        Instantiate(FXPrefab[id], pos, rot);
    }
    public void ShowUIFX(int id)
    {
        Instantiate(FXPrefab[id], UICanvas.transform);
    }
}
